package com.istudy.service.interfaces;

import com.istudy.entity.Upload;
import com.istudy.entity.Video;
import org.omg.CORBA.Request;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 视频上传service接口
 * @date 2020-09-01
 * @author GQ
 */
public interface UploadService {
    /**
     * 添加上传记录
     * @param upload 实体类
     * @return 受影响行数
     */
    boolean addUpload(Upload upload);

    /**
     * 删除上传记录
     * @param id id
     * @return 受影响行数
     */
    boolean deleteUploadById(int id);
    /**
     * 获取展示列表
     * @return list
     */
    public List<Upload> getAllList(HttpServletRequest request, int num);
    /**
     * 获取upload
     * @return upload
     */
    public Upload getUpload(HttpServletRequest request, int num);

}
